package org.syndicate.domain;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import java.util.Date;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * Payment detail.<br/>
 * Borrower repays according to PaymentDetail. 
 * 
 * @author akiraabe
 */
@RooJavaBean
@RooToString
@RooEntity
public class PaymentDetail {

    private Integer paymentTime;

    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(style = "S-")
    private Date paymentDate;

    private Long principal;

    private Long interest;

    private Long amount;

    private Double balanceOfPrincipal;
}
